package com.java.study.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.study.common.utils.PageUtils;
import com.java.study.common.utils.Query;

import com.java.study.dao.EpisodeDao;
import com.java.study.entity.EpisodeEntity;
import com.java.study.service.EpisodeService;


@Service("episodeService")
public class EpisodeServiceImpl extends ServiceImpl<EpisodeDao, EpisodeEntity> implements EpisodeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<EpisodeEntity> page = this.page(
                new Query<EpisodeEntity>().getPage(params),
                new QueryWrapper<EpisodeEntity>()
        );

        return new PageUtils(page);
    }

}